package com.tamtamy.jtta.data.xml;

import org.w3c.dom.Document;

import com.tamtamy.jtta.data.UserStats;
import com.tamtamy.jtta.utility.XMLUtility;

public class XMLUserStats extends UserStats {

	public XMLUserStats(Document xmlDocument) {
		super();
		this.id = Long.parseLong(XMLUtility.getString(xmlDocument, "id"));
        this.generated = XMLUtility.getDate(xmlDocument, "generated");
        this.position = XMLUtility.getString(xmlDocument, "position");				
	}
}
